#include "CaseDB/Impl/DirectionConversions.hpp"

namespace CaseDB { namespace Impl {



QSql::ParamTypeFlag DirectionConversions::toQt( ParamDirections dir )
{
	static QSql::ParamTypeFlag DIRECTIONS[] = 
	{ 
		QSql::In,	// ParamDirectionsEnum::In
		QSql::Out,	// ParamDirectionsEnum::Out
		QSql::InOut	// ParamDirectionsEnum::InOut
	};

	return DIRECTIONS[ dir];
}


} } // namespace Impl // namespace CaseDB
